package com.zhx.mybatislog.user.controller;


import com.zhx.mybatislog.user.dao.SysUserMapper;
import com.zhx.mybatislog.user.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author YangJinChuan
 * @since 2021-04-30
 */
@RestController
@Controller
@RequestMapping("/sysUser")
public class SysUserController {

    @Autowired
    SysUserMapper sysUserMapper;
    @RequestMapping("/")
    public String  update(){

        User user=new User().setId(18006).setPassword("4567831sssssss3").setAccount("测试log").setUname("张某");
//        return  sysUserMapper.updateUser1(user.getId())+"";
        return  sysUserMapper.updateUser(user)+"";
    }
}

